package com.gxa.clientproduct.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author: fenglin
 * @Date:2020/11/11 10:58
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_specs")
public class Specs implements Serializable {
//    specs_id	id
////    pro_sysnum	商品系统编号
////    specs_name	商品规格名称
////    specs_num	商品规格编号
////    specs_mongey	商品规格价格
////    specs_repertory	商品规格库存
////    specs_img	商品规格图片


    @Id
    @Column(name = "specs_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)//自动增长
    private Integer id;	//id	int

    @Column(name = "pro_sysnum")
    private String  sysnum;	//商品系统编号	varchar(255)

    @Column(name = "specs_name")
    private String  name;	//商品规格名称	varchar(255)

    @Column(name = "specs_num")
    private String  num;	//商品规格编号	varchar(255)

    @Column(name = "specs_mongey")
    private Double  money;	//商品规格价格	double

    @Column(name = "specs_repertory")
    private Integer repertory;	//商品规格库存	int

    @Column(name = "specs_img")
    private String  img;	//商品规格图片	varchar(255)


}
